#ifndef __EnemyMgr_H__
#define __EnemyMgr_H__
#include "cocos2d.h"
#include "Enemy.h"
#include "TiledMapMgr.h"
#include "Bullet.h"
USING_NS_CC;
using namespace std;
class CEnemyMgr : public Node
{
public:
	CEnemyMgr();
	~CEnemyMgr();
	virtual bool init();
	CREATE_FUNC(CEnemyMgr);
	void initEnemy(int enemyId,int area,Vec2 pos);
	bool isCollideEnemy(CBullet* bullet);
	void removeFromVec(CEnemy*);
	void hasAliveActive();
	void hasAlive();
	void activeEnemy(int areaId);
	CEnemy* getEnemyWithRecent(Vec2 playerPos);
	CC_SYNTHESIZE_READONLY(vector<CEnemy*>, m_vecEnemy, Enemys);

private:
	CTiledMapMgr* m_pTiledMapMgr;
};

#endif